package com.wing.storage.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 产品库存
 *
 * @author xiayang
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pro_product_inventory")
public class ProductInventory extends BaseEntity<ProductInventory> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 物料ID
     */
    private Long productDetailId;

    /**
     * 物料编码
     */
    @TableField(exist = false)
    private String skuCode;

    /**
     * 物料名称
     */
    @TableField(exist = false)
    private String skuName;

    /**
     * 物料规格
     */
    @TableField(exist = false)
    private String skuSpec;

    /**
     * 物料类别ID
     */
    @TableField(exist = false)
    private Long productTypeId;

    /**
     * 物料类别编码
     */
    @TableField(exist = false)
    private String productTypeCode;

    /**
     * 物料类别名称
     */
    @TableField(exist = false)
    private String productTypeName;

    /**
     * 库存数量
     */
    private BigDecimal quantity;

    /**
     * 库位编码
     */
    @TableField(exist = false)
    private String warehouseShelfSpaceCode;
    
    /**
     * 产品库存详细列表
     */
    @TableField(exist = false)
    private List<ProductInventoryDetail> productInventoryDetailList;

}
